From e602263a302494bdcc060828545275f4bc2001e1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 6 Nov 2014 08:56:34 -0800 Subject: [PATCH] Fix a tidy issue with src/bin/cargo.rs --- src/bin/cargo.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index bf7b35839..28a0addc6 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -101,8 +101,9 @@ fn execute(flags: Flags, shell: &mut MultiShell) -> CliResult> { let (mut args, command) = match flags.arg_command.as_slice() { "" | "help" if flags.arg_args.len() == 0 => { shell.set_verbose(true); - let r = cargo::call_main_without_stdin(execute, shell, USAGE, - [os::args()[0].clone(), "-h".to_string()], false); + let args = &[os::args()[0].clone(), "-h".to_string()]; + let r = cargo::call_main_without_stdin(execute, shell, USAGE, args, + false); cargo::process_executed(r, shell); return Ok(None) } -- 2.30.2